﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;

namespace JuSolution.Web.ApiService.App.Toursim
{
    /// <summary>
    /// ProductService 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务，请取消注释以下行。 
    // [System.Web.Script.Services.ScriptService]
    public class ProductService : System.Web.Services.WebService, JuCloudy.Service.Intreface.jService
    {
        private JuCloudy.Data.Nhibernate.App.Toursim.ProductContainer container { get; set; }
        [WebMethod]
        public string Insert(string JsonOfEntity)
        {
            container = new JuCloudy.Data.Nhibernate.App.Toursim.ProductContainer();
            return container.Insert(JsonOfEntity);
        }
        [WebMethod]
        public string Delete(string JsonOfEntity)
        {
            container = new JuCloudy.Data.Nhibernate.App.Toursim.ProductContainer();
            return container.Delete(JsonOfEntity);
        }
        [WebMethod]
        public string GetEntity(string Query)
        {
            container = new JuCloudy.Data.Nhibernate.App.Toursim.ProductContainer();
            return container.GetEntity(Query);
        }
        [WebMethod]
        public string GetEntities()
        {
            container = new JuCloudy.Data.Nhibernate.App.Toursim.ProductContainer();
            return container.GetEntities();
        }
    }
}
